import { React, useEffect } from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Router, Route, Link, IndexRoute } from 'react-router-dom'
import HomePage from './Pages/homePage/index.js';
import Redirect from './Pages/redirect'
import AdminPage from  './Pages/admin/index'
import Examination from './Pages/examination/index.js';
import SelfCenter from './Pages/selfCenter/index.js';
import UserCenter from './Pages/userCenter/index'

export default () => {
    return (
        <BrowserRouter>
            <Route path='/' component={Redirect} />
            <Route path="/user" component={HomePage} />
            <Route path="/admin" component={AdminPage} />
            <Route path='/examination' component={Examination}/>
            <Route path='/selfCenter' component={UserCenter}/>
        </BrowserRouter>
    )
}